package com.ruoyi.system.api.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 人体临床实验基本信息对象 human_clinical_trial
 * 
 * @author gw
 * @date 2025-01-06
 */
public class HumanClinicalTrial extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 临床实验ID */
    private Long trialId;

    /** 临床实验名称 */
    @Excel(name = "临床实验名称")
    private String trialName;

    /** 科研项目ID */
    @Excel(name = "科研项目ID")
    private Long projectId;

    /** 临床实验类型 */
    @Excel(name = "临床实验类型")
    private String trialType;

    /** 实验开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "实验开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 实验结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "实验结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 实验状态 */
    @Excel(name = "实验状态")
    private String status;

    /** 临床试验目的与目标 */
    @Excel(name = "临床试验目的与目标")
    private String trialObjective;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createdBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 更新人 */
    @Excel(name = "更新人")
    private String updatedBy;

    /** 删除时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "删除时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deletedAt;

    /** 删除人 */
    @Excel(name = "删除人")
    private String deletedBy;

    /** 删除标记 */
    @Excel(name = "删除标记")
    private Integer deletedFlag;

    /** 版本号 */
    @Excel(name = "版本号")
    private Long version;

    public void setTrialId(Long trialId) 
    {
        this.trialId = trialId;
    }

    public Long getTrialId() 
    {
        return trialId;
    }
    public void setTrialName(String trialName) 
    {
        this.trialName = trialName;
    }

    public String getTrialName() 
    {
        return trialName;
    }
    public void setProjectId(Long projectId) 
    {
        this.projectId = projectId;
    }

    public Long getProjectId() 
    {
        return projectId;
    }
    public void setTrialType(String trialType) 
    {
        this.trialType = trialType;
    }

    public String getTrialType() 
    {
        return trialType;
    }
    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }
    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setTrialObjective(String trialObjective) 
    {
        this.trialObjective = trialObjective;
    }

    public String getTrialObjective() 
    {
        return trialObjective;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }
    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }
    public void setDeletedAt(Date deletedAt) 
    {
        this.deletedAt = deletedAt;
    }

    public Date getDeletedAt() 
    {
        return deletedAt;
    }
    public void setDeletedBy(String deletedBy) 
    {
        this.deletedBy = deletedBy;
    }

    public String getDeletedBy() 
    {
        return deletedBy;
    }
    public void setDeletedFlag(Integer deletedFlag) 
    {
        this.deletedFlag = deletedFlag;
    }

    public Integer getDeletedFlag() 
    {
        return deletedFlag;
    }
    public void setVersion(Long version) 
    {
        this.version = version;
    }

    public Long getVersion() 
    {
        return version;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("trialId", getTrialId())
            .append("trialName", getTrialName())
            .append("projectId", getProjectId())
            .append("trialType", getTrialType())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("status", getStatus())
            .append("trialObjective", getTrialObjective())
            .append("createdAt", getCreatedAt())
            .append("createdBy", getCreatedBy())
            .append("updatedAt", getUpdatedAt())
            .append("updatedBy", getUpdatedBy())
            .append("deletedAt", getDeletedAt())
            .append("deletedBy", getDeletedBy())
            .append("deletedFlag", getDeletedFlag())
            .append("version", getVersion())
            .toString();
    }
}
